package org.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2024/6/25 0025
 * @time 19:45
 */
@RestController
public class TestController {

    @Value("${server.port}")
    private Integer port;
    @GetMapping("/test1")
    public String hello(){
        return  "端口号"+this.port+"----》你好，nacos！";
    }
}
